package com.yuyou.hxyy.gateway.security;

import javax.servlet.http.HttpServletRequest;

import org.springframework.security.web.authentication.WebAuthenticationDetails;

/**
 * 自定义登陆请求参数
 *
 */
public class WebAuthenticationDetailsImpl extends WebAuthenticationDetails {
	private static final long serialVersionUID = 6975601077710753878L;
	private final String phone;
	private final String password;
	private final String userType;	
	private final String captcha;
	private final String token;

	public WebAuthenticationDetailsImpl(HttpServletRequest request) {
		super(request);
		phone = request.getParameter("phone");
		password = request.getParameter("password");
		userType = request.getParameter("userType");
		captcha = request.getParameter("captcha");
		token = request.getParameter("token");
	}

	public String getPhone() {
		return phone;
	}

	public String getPassword() {
		return password;
	}

	public String getCaptcha() {
		return captcha;
	}

	public String getToken() {
		return token;
	}

	public String getUserType() {
		return userType;
	}

}
